import {Middleware} from "redux";

export const actionLog: Middleware = (store) => (next) => (action) => {
  console.debug("State before:", store.getState());
  console.debug("action:", action);
  next(action);
  console.debug("State after:", store.getState());
}
